let unililty = require('../common/unility')
let databaseConfig  = unililty.getConfig();

let config = {
 sessionAge: 7 * 24 * 60 * 60 * 1000,
 database: {
   host: databaseConfig.sqlAddress, 
    //host: "47.75.34.133",//测试环境
   port: 3306,
   user: databaseConfig.sqlUser,
   password: databaseConfig.sqlPwd,
   database: "attendance",
   multipleStatements: true,
   waitForConnections: true
   // debug:true
 }
};

module.exports = Object.assign(config, process.env.NODE_ENV && require('./' + process.env.NODE_ENV + '.js'));
